<template>
  <div id="app" class="root">
      <Layout v-if="showHeader"/>
      <router-view v-else/>
  </div>
</template>

<script>
import Layout from "./views/layout/layout";
export default {
  name: 'App',
  components: {Layout},
  data(){
      return {
          showHeader: true
      }
  },
  created() {
      let url = window.location.href;
      if(url.indexOf("login") > -1){
          this.showHeader = false;
      }else{
          this.showHeader = true;
      }
  },

}
</script>



<style scoped lang="css">
  .root{
    width: 100%;
    height: 100%;
  }
</style>
